﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SportsStore.Domain.Abstract;

namespace SportsStore.WebUI.Controllers
{
    public class AdminController : Controller
    {
        public IProductRepository Repository { get; set; }

        public AdminController( IProductRepository repository )
        {
            this.Repository = repository;
        }

        //
        // GET: /Admin/

        public ViewResult Index()
        {
            return View( this.Repository.Products );
        }

    }
}
